package com.computec.tray.constantes;

import com.computec.tray.source.TraySource;


/**
 *
 * @author FSanchez
 */
public class ConstantesGenerales {
    protected static ConstantesGenerales instance;
     
    public static String HOST_PORTAL;
    public static String HOST_PORTAL_DESARROLLO;
    public static String HOST_GATEWAY;
    public static String USER_PORTAL;
    public static String USER_PORTAL_DESARROLLO;
    public static String USER_GATEWAY;
    public static String PASS_PORTAL;
    public static String PASS_GATEWAY;
    public static String PASS_PORTAL_DESARROLLO;
    
    public static String FILE_KNOWN_HOSTS;
    public static String FILE_LOG;
    public static String COMMAND_KILL_PORTAL;
    public static String COMMAND_PS_PID;
    public static String COMMAND_PRENDER_SUN;
    public static String COMMAND_APAGAR_GATEWAY;
    public static String COMMAND_PRENDER_GATEWAY;
    public static String FAIL_TIMES;
    
    public static String HOST_NAME_PORTAL;
    public static String HOST_NAME_PORTAL_DESARROLLO;
    public static String HOST_NAME_GATEWAY;
    public static String HORA_REINICIO_PORTAL;
    
    public static String MAIL_SMTP_HOST;
    public static String MAIL_SMTP_PORT;
  
    
    
    /** Creates a new instance of ConstantesGenerales */
    public ConstantesGenerales() {
    	TraySource traySource=TraySource.getInstance();
	
//		this.HOST_PORTAL       	 	= traySource.getTraySetupKey("hostPortal");  
//		this.HOST_PORTAL_DESARROLLO = traySource.getTraySetupKey("hostPortalDesarrollo");  
//		this.HOST_GATEWAY        	= traySource.getTraySetupKey("hostGateway");
//	    this.USER_PORTAL		 	= traySource.getTraySetupKey("userPortal");
//	    this.USER_PORTAL_DESARROLLO	= traySource.getTraySetupKey("userPortalDesarrollo");
//	    this.USER_GATEWAY		 	= traySource.getTraySetupKey("userGateway");
//	    this.PASS_PORTAL		 	= traySource.getTraySetupKey("passPortal");
//	    this.PASS_PORTAL_DESARROLLO = traySource.getTraySetupKey("passPortalDesarrollo");
//	    this.PASS_GATEWAY		 	= traySource.getTraySetupKey("passGateway");
//	    this.COMMAND_KILL_PORTAL 	= traySource.getTraySetupKey("commandKillPortal");
//	    this.COMMAND_PS_PID		 	= traySource.getTraySetupKey("commandPS_PID");
//	    this.COMMAND_PRENDER_SUN 	= traySource.getTraySetupKey("commandPrenderSun");
//	    this.COMMAND_PRENDER_GATEWAY 	= traySource.getTraySetupKey("commandPrenderGateway");
//	    this.COMMAND_APAGAR_GATEWAY 	= traySource.getTraySetupKey("commandApagarGateway");
//	    this.FILE_KNOWN_HOSTS			= traySource.getTraySetupKey("fileKnownHosts");
//	    this.FAIL_TIMES					= traySource.getTraySetupKey("failTimes");
//	    this.HOST_NAME_GATEWAY			= traySource.getTraySetupKey("hostNameGateway");
//	    this.HOST_NAME_PORTAL			= traySource.getTraySetupKey("hostNamePortal");
//	    this.HOST_NAME_PORTAL_DESARROLLO= traySource.getTraySetupKey("hostNamePortalDesarrollo");
//	    this.HORA_REINICIO_PORTAL  		= traySource.getTraySetupKey("horaReinicioPortal");
	    this.MAIL_SMTP_HOST				= traySource.getTraySetupKey("hostSmtp");
	    this.MAIL_SMTP_PORT				= traySource.getTraySetupKey("portSmtp");
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}